﻿using System.Collections.Generic;
using Netkk.Common.Models;
using Netkk.Data.Provider;

namespace Netkk.Library.Repositories
{
    public class DownloadRepository : IDownloadRepository
    {
        private static DataProvider Provider
        {
            get { return DataProviderManager.Provider; }
        }

        public IEnumerable<Download> Select()
        {
            return Provider.SelectAllDownloads();
        }

        public void Save(Download download)
        {
            Provider.SaveDownload(download);
        }

        public void Delete(Download download)
        {
            Provider.DeleteDownload(download);
        }

    }

}
